#include <stdio.h>

void biggest_of(double* i,double* j,double* k);
void swap(double* num1,double* num2);

int main(void)
{
	double num1,num2,num3;
	
	scanf("%lf %lf %lf",&num1,&num2,&num3);
	printf("The compare number is %lf %lf %lf",num1,num2,num3);
	biggest_of(&num1,&num2,&num3);
	printf("The order of three number is %lf %lf %lf",num1,num2,num3);
	
	return 0;
}

void biggest_of(double* i,double* j,double* k)
{
	if(*i<*j)
		swap(i,j);
	if(*i<*k)
		swap(i,k);
	if(*j<*k)
		swap(j,k);
	return;
}

void swap(double* num1,double* num2)
{
	double temp;
	
	temp=*num1;
	*num1=*num2;
	*num2=temp;
	
	return;
}
